<!DOCTYPE html>
<html lang="zh-hans">

<head>
    <meta charset="UTF-8"/>
    <title>pro-api</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
    <link rel="stylesheet" href="/sdk/sdk.css"/>
    <link rel="stylesheet" href="/sdk/helper.css"/>
    <link rel="stylesheet" href="/sdk/iconfont.css"/>
    <script src="/sdk/sdk.js"></script>
    <style>
        html,
        body,
        .app-wrapper {
            position: relative;
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
        }
    </style>
</head>

<body>
<div id="root" class="app-wrapper"></div>
<script type="text/javascript">
    (function () {
        const amis = amisRequire('amis/embed');
        const amisJSON = {
            type: 'page',
            title: '{{ .pageTitle }}',
            body: {
                type: "service",
                schemaApi: "{{ .pageSchemaApi }}"
            },
            regions: [
                "body",
                "header",
                "toolbar"
            ],
            toolbar: [
                {
                    "type": "button",
                    "label": "获取当前页面配置",
                    // "confirmText": "是否跳转获取页面的配置 ？",
                    "url": "{{ .getConfigAddr }}",
                    "actionType": "url"
                }
            ],
            className: "p",
        };
        amis.embed('#root', amisJSON, {}, {});
    })();
</script>
</body>

</html>